﻿// ***********************************************************************
// Assembly         : STX.Domain
// Author           : seven.x
// Created          : 12-27-2013
//
// Last Modified By : seven.x
// Last Modified On : 02-21-2014
// ***********************************************************************
// <copyright file="BizQuotePriceTemplate.cs" company="驰创数码">
//     Copyright (c) 驰创数码. All rights reserved.
// </copyright>
// <summary></summary>
// ***********************************************************************

using System;
using System.Collections.Generic;

namespace STX.Domain
{
    /// <summary>
    /// Class 报价模板.
    /// </summary>
    public class BizQuotePriceTemplate:BaseEntity
    {
        /// <summary>
        /// Gets or sets the material category unique identifier.
        /// </summary>
        /// <value>The material category unique identifier.</value>
        public int MaterialCategoryId { get; set; }

        /// <summary>
        /// Gets or sets the supplier unique identifier.
        /// </summary>
        /// <value>The supplier unique identifier.</value>
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets the code.
        /// </summary>
        /// <value>The code.</value>
        public string Code { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int AreaId { get; set; }

        /// <summary>
        /// Gets or sets the unit.
        /// </summary>
        /// <value>The unit.</value>
        public string Unit { get; set; }

        /// <summary>
        /// Required
        /// </summary>
        /// <value>The required.</value>
        public string Required { get; set; }

        /// <summary>
        /// 项目成本价
        /// </summary>
        /// <value>The cost price.</value>
        public decimal ProjectCostPrice { get; set; }

        /// <summary>
        /// 财务成本价
        /// </summary>
        /// <value>The finance price.</value>
        public decimal FinanceCostPrice { get; set; }

        /// <summary>
        /// Gets or sets the status value.
        /// </summary>
        /// <value>The status value.</value>
        public StatusEnum Status { get; set; }

        public SplitEnum Split { get; set; }

        /// <summary>
        /// Gets or sets the biz material category.
        /// </summary>
        /// <value>The biz material category.</value>
        public virtual BizMaterialCategory BizMaterialCategory { get; set; }
        /// <summary>
        /// Gets or sets the biz supplier.
        /// </summary>
        /// <value>The biz supplier.</value>
        public virtual IList<BizQuotePrice> BizQuotePriceList { get; set; }

        public virtual List<BizSupplier> Suppliers { get; set; }


        public enum  SplitEnum
        {
            [Field(Name = "不用拆分")]
            NoSplit = 0,

            [Field(Name = "须拆分")]
            NeedSplit = 1,
        }
    }
}
